package com.soen6441.generics;
class UsingGenericTypes<T> {
    final T t;

    public UsingGenericTypes(T t) {
        this.t = t;
    }

    public void doSomethingWithT(){
        // only methods that can be called on t
        // is those supported by Object
        // we say T is erased to its lower bound
        // in this case lower bound is object
        t.getClass();
        t.toString();
    }
}
